// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './route/route'

import VueResource from 'vue-resource'

Vue.use(VueResource)
import Vuex from 'vuex'
Vue.use(Vuex)
import axios from 'axios'
// 日历
import Calendar from 'vue2-datepick'
Vue.use(Calendar)
// 轮播
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 下拉刷新
import PullTo from 'vue-pull-to'
Vue.use(PullTo)
Vue.use(VueAwesomeSwiper)
Vue.prototype.axios = axios
Vue.config.productionTip = false

const store  = new Vuex.Store({
  state: {
    ji:'',
    ge:'',
    shou:'',
    ye:''
  },
  mutations: {
    ADD_JI(state,ji){
      state.ji = ji
    },
    ADD_GE(state,ge){
      state.ge = ge
    },
    ADD_SHOU(state,shou){
      state.shou = shou
    },
    ADD_YE(state,ye){
      state.ye = ye
    }
  },
  actions:{

  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  template: '<App/>',
  components: { App },
  router
})
